<?php



class SmsOutputMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.SmsOutputMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('sms_output');
		$tMap->setPhpName('SmsOutput');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('SERVICE_NUMBER', 'ServiceNumber', 'string', CreoleTypes::VARCHAR, false, 20);

		$tMap->addColumn('SMS_ID', 'SmsId', 'string', CreoleTypes::VARCHAR, false, 20);

		$tMap->addColumn('RECEIVE_PHONE', 'ReceivePhone', 'string', CreoleTypes::VARCHAR, false, 20);

		$tMap->addColumn('SEND_DATETIME', 'SendDatetime', 'int', CreoleTypes::TIMESTAMP, false, null);

		$tMap->addColumn('SMS_TYPE', 'SmsType', 'int', CreoleTypes::TINYINT, false, null);

		$tMap->addColumn('CONTENT', 'Content', 'string', CreoleTypes::VARCHAR, false, 255);

		$tMap->addColumn('DESCRIPTION', 'Description', 'string', CreoleTypes::VARCHAR, false, 255);

		$tMap->addColumn('CHARGE', 'Charge', 'int', CreoleTypes::TINYINT, false, null);

		$tMap->addColumn('SERVICE_NAME', 'ServiceName', 'string', CreoleTypes::VARCHAR, false, 20);

		$tMap->addColumn('STATUS', 'Status', 'string', CreoleTypes::VARCHAR, false, 255);

	} 
} 